import { createApp } from 'vue'
import App from './App.vue'
import {createRouter, createWebHashHistory} from 'vue-router'
import ViewUIPlus from 'view-ui-plus'
import 'view-ui-plus/dist/styles/viewuiplus.css'
import '@/data/config'

import HelloWorld from '@/components/HelloWorld'
import CompanyList from '@/components/CompanyList'
import CompanyDetail from '@/components/CompanyDetail'
import userLogin from '@/components/page/userLogin'

 const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/userLogin'
        },  
        // {
        //     path:'/', component: CompanyList
        // },
        {
            path:'/helloworld', component: HelloWorld
        },        
        {
            path: '/company/list', component: CompanyList
        },
        {
            path: '/company/detail', component: CompanyDetail
        },
        {
            path: '/userLogin', component: userLogin
        }
    ]
})



const app = createApp(App)
app.use(ViewUIPlus)
   .use(router)
    .mount('#app')
